﻿using MoreEvent.Common.Systems;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace MoreEvent.Content.Biomes
{
    public class HeatWave : ModBiome
    {
        public override int Music => MusicID.Desert;
        public override SceneEffectPriority Priority => SceneEffectPriority.BiomeLow;
        public override bool IsBiomeActive(Player player)
        {
            bool flag2 = (EventSystem.ActiveEvents.Contains(5) && player.ZoneOverworldHeight && !player.ZoneSnow) || (EventSystem.ActiveEvents.Contains(5) && player.ZoneOverworldHeight && player.wet && !player.ZoneSnow) || (EventSystem.ActiveEvents.Contains(5) && player.ZoneOverworldHeight && !player.ZoneSnow);
            bool flag = EventSystem.ActiveEvents.Contains(5);
            player.ManageSpecialBiomeVisuals("MoreEvent:HeatWave", flag2, default);
            return flag;
        }
    }
}
